package com.hs.service;

import com.hs.entity.dto.LoginDTO;
import com.hs.entity.pojo.User;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hs.entity.vo.UserHomeVO;
import com.hs.entity.vo.UserInfoVO;
import com.hs.utils.ResultResponse;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author hs
 * @since 2023-08-05
 */
public interface UserService extends IService<User> {

    ResultResponse<UserInfoVO> loginByPhone(String phone);

    ResultResponse<UserInfoVO> login(LoginDTO loginDTO);

    ResultResponse<?> modifyPassword(String password);

    ResultResponse<?> logout();

    ResultResponse<UserHomeVO> getUserHome(Integer userId);

}
